﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using VIA.Integration;
using VIA.Presentation;
using VIA.Presentation.Contracts;
using VIA.SiMoJi.Presentation.ViewModel;

namespace VIA.SiMoJi.Presentation.View
{
    /// <summary>
    /// FeiDaStationOptionView.xaml 的交互逻辑
    /// </summary>
    [View(typeof(IFeiDaStationOptionView))]
    public partial class FeiDaStationOptionView : IFeiDaStationOptionView
    {
        public FeiDaStationOptionView()
        {
            InitializeComponent();
        }
        public IObject EditObject
        {
            get => this.GetViewModel<FeiDaStationOptionViewModel>().EditObject;
            set => this.GetViewModel<FeiDaStationOptionViewModel>().EditObject = value;
        }

        private void MetroWindow_Loaded(object sender, RoutedEventArgs e)
        {
            var flag = this.GetViewModel<FeiDaStationOptionViewModel>().Station.Flag;
            this.Title = flag == 1 ? "飞达1" : "飞达2";
        }
    }
}
